package com.baili.healthsystemremote.remote;

import com.baili.healthcommoncore.domain.constants.ServerConstantsName;
import com.baili.healthcommoncore.domain.result.Result;
import com.baili.healthsystem.domain.User;
import com.baili.healthsystem.domain.request.UserRequest;
import org.bouncycastle.asn1.sec.SECNamedCurves;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
/**
 * @Author：ShenJiaFeng
 * @Package：com.baili.healthsystemremote.remote
 * @Project：baili-health-cloud
 * @name：SystemRemoteService
 * @Date：2024/5/26 11:01
 * @Author：ShenJiaFeng
 * @Package：com.baili.healthsystemremote.remote
 * @Project：baili-health-cloud
 * @name：SystemRemoteService
 * @Date：2024/5/26 11:01
 * @Description:
 */
/**
 * 远程调用
 */
@FeignClient(
        value = ServerConstantsName.HEALTH_SYSTEM,
        path = "/system"
)
public interface RemoteSystemService {
    /**
     * 查询用户登录信息 /手机号/邮箱/身份证号/用户名
     * @param userRequest
     * @return
     */
    @PostMapping("/findByUserLoginInfo")
    public Result<User> findByUserNameOrUserEmailOrPhoneOrIdCard(@RequestBody UserRequest userRequest);
}
